
//vuốt kéo// <![CDATA[
var down_x = null;
var up_x = null;
  $("body").mousedown(function(e){
    e.preventDefault();
    down_x = e.pageX;
  });
  $("body").mouseup(function(e){
    up_x = e.pageX;
    do_work();
  });
  $("body").bind('touchstart', function(e){
    down_x = e.originalEvent.touches[0].pageX;
  });
  $("body").bind('touchmove', function(e){
    e.preventDefault();
    up_x = e.originalEvent.touches[0].pageX;
  });
  $("body").bind('touchend', function(e){
    do_work();
  });
//});
function do_work()
{
  if ((down_x - up_x) > 50)
    {
        slide_right();
    }
    if ((up_x - down_x) > 50)
    {
        slide_left();
    }
}
function slide_right()
{
  nextPage();
  //$j("#slider_content").animate({scrollLeft:'+=300'},1000);
}
function slide_left()
{
	prevPage();
  //$j("#slider_content").animate({scrollLeft:'-=300'},1000);
}
